package org.example.service.model;



import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author itmei
 * @Package org.example.service.model
 * @Date 2025/6/2 19:36
 */
public class OrderModel {
    //订单号
    private String id;
    //用户id
    private Integer userId;
    //商品id
    private Integer itemId;
    //非空表示以秒杀商品方式下单
    private Integer promoId;
    //购买数量
    private Integer amount;
    //购买金额，若promoID非空则以秒杀商品价格
    private BigDecimal orderPrice;
    //购买商品单价，若promoID非空则以秒杀商品价格
    private BigDecimal itemPrice;
    //订单创建时间
    private LocalDateTime createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(BigDecimal itemPrice) {
        this.itemPrice = itemPrice;
    }

    public Integer getPromoId() {
        return promoId;
    }

    public void setPromoId(Integer promoId) {
        this.promoId = promoId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
